<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateUserFriendListTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('user_friend_list', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedInteger('uid');
            $table->unsignedMediumInteger('pfid')->comment('平台ID');	
            $table->unsignedInteger('touid')->commit('好友ID');
            $table->timestamps();
            $table->index(['uid'], 'uid_index');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('user_friend_list');
    }
}
